package com.rui1024.dao;

import com.rui1024.pojo.Diary;
import com.rui1024.util.PageUtil;

import java.sql.Connection;
import java.util.List;


public interface DiaryDao {

    List<Diary> diaryList(Connection con, PageUtil pageUtil,Diary s_diary)throws Exception;

    int diaryCount(Connection con,Diary s_diary)throws Exception;

    List<Diary> diaryCountList(Connection con) throws Exception;

    Diary diaryShow(Connection con,int diaryId)throws Exception;

    int diaryAdd(Connection con,Diary diary)throws Exception;

    int diaryDelete(Connection con,int diaryId)throws Exception;

    int diaryUpdate(Connection con,Diary diary)throws Exception;

    boolean findByTypeId(Connection con,int typeId)throws Exception;
}
